home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJSRC106.ARJ / PATCH.DIF < prev    next >
Text File  |  1991-03-24  |  2KB  |  90 lines

  1. diff +context=2 +entire-new-file orig/common.h ./common.h
  2. *** orig/common.h    Sun Dec  2 23:18:08 1990
  3. --- ./common.h    Fri Mar 15 21:45:06 1991
  4. ***************
  5. *** 147,150 ****
  6. --- 147,154 ----
  7.   EXT char *revision INIT(Nullch);    /* prerequisite revision, if any */
  8.   
  9. + #ifdef GNUDOS
  10. + #include <stdio.h>
  11. + #include <stdlib.h>
  12. + #else
  13.   char *malloc();
  14.   char *realloc();
  15. ***************
  16. *** 160,161 ****
  17. --- 164,166 ----
  18.   #endif
  19.   char *getenv();
  20. + #endif
  21. diff +context=2 +entire-new-file orig/config.h ./config.h
  22. *** orig/config.h    Wed Aug 15 00:13:40 1990
  23. --- ./config.h    Fri Mar 15 21:45:06 1991
  24. ***************
  25. *** 13,16 ****
  26. --- 13,18 ----
  27.   #/*undef    void int    /* is void to be avoided? */
  28.   
  29. + #define CHARSPRINTF
  30.   /* How many register declarations are paid attention to? */
  31.   
  32. diff +context=2 +entire-new-file orig/makefile ./makefile
  33. *** orig/makefile
  34. --- ./makefile    Sun Mar 24 13:35:18 1991
  35. ***************
  36. *** 0 ****
  37. --- 1,8 ----
  38. + O = inp.o patch.o pch.o util.o version.o
  39. + .c.o:
  40. +     gcc -O -DGNUDOS -c $<
  41. + patch : $(O)
  42. +     gcc -o patch $(O)
  43. diff +context=2 +entire-new-file orig/pch.c ./pch.c
  44. *** orig/pch.c    Sun Jan 20 20:12:14 1991
  45. --- ./pch.c    Fri Mar 15 21:49:32 1991
  46. ***************
  47. *** 1226,1229 ****
  48. --- 1226,1233 ----
  49.   do_ed_script()
  50.   {
  51. + #ifdef GNUDOS
  52. +     fprintf(stderr, "Fatal!  attempt to do ed script on DOS!\n");
  53. +     exit(1);
  54. + #else
  55.       Reg1 char *t;
  56.       Reg2 long beginning_of_this_line;
  57. ***************
  58. *** 1283,1285 ****
  59. --- 1287,1290 ----
  60.       chmod(outname, filemode);
  61.       set_signals(1);
  62. + #endif
  63.   }
  64. diff +context=2 +entire-new-file orig/util.c ./util.c
  65. *** orig/util.c    Wed Aug 15 00:13:38 1990
  66. --- ./util.c    Fri Mar 15 21:48:00 1991
  67. ***************
  68. *** 15,18 ****
  69. --- 15,22 ----
  70.       Reg3 int fromfd;
  71.   
  72. + #ifdef GNUDOS
  73. +     rename(from,to);
  74. + #else
  75.       /* to stdout? */
  76.   
  77. ***************
  78. *** 92,95 ****
  79. --- 96,100 ----
  80.       }
  81.       Unlink(from);
  82. + #endif
  83.       return 0;
  84.   }
  85.